// 更新邮箱和手机号

import axios from "axios";

export default function (email, phoneNumber) {
    return axios({
        method: "put",
        url: "/api/users/info",
        data: {
            email,
            phoneNumber
        }
    }).then((response) => {
        return {
            result: true,
            data: response.data
        }
    }).catch(error =>{
        return {
            result: false,
            msg: error.response.data.msg
        }
    })
}